<template>
    <div>
        <button @click="sendJsonp">发送JSONP请求</button>    

        <button @click="sendProxy">配置代理服务器，发送跨域请求</button>
    </div>
</template>

<script>
import axios from 'axios'
import qs from 'qs'

export default {
    methods:{
        sendJsonp(){
            this.$jsonp('https://mce.mogucdn.com/jsonp/multiget/3',{
                appPlat:'m',
                pids:140378
            }).then( res => {
                console.log(res)
            })
        },
        sendProxy(){
                city:'南京',
                key:'3b152d4c5b0b5ae07dce187e2ce9a04a'
            })).then(res => {
                console.log(res)
            })
            
        }
    }
}
</script>

<style>

</style>